package com.ebei.admin.model.entity;


import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("sys_company")
public class SysCompany extends Model<SysCompany> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "org_id", type = IdType.INPUT)
    private Integer orgId;

    @TableField("name")
    private String name;

    @TableField("company_seq")
    private String companySeq;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_time")
    private Date updateTime;

    @TableField("del_flag")
    private String delFlag;

    @TableField("admin_account")
    private String adminAccount;

    @TableField("password")
    private String password;

    // 行业领域
    @TableField("industry_sector")
    private Integer industrySector;

    // 信用统一代码
    @TableField("unified_credit_code")
    private String unifiedCreditCode;

    // 法人姓名
    @TableField("legal_person_name")
    private String legalPersonName;

    // 法人身份证
    @TableField("legal_person_identity_card")
    private String legalPersonIdentityCard;

    // 企业规模
    @TableField("enterprise_scale")
    private String enterpriseScale;

    // 危险源
    @TableField("dangerous_source")
    private String dangerousSource;

    // 风险级别(企业风险级别：A、B、C ，数据字典获取)
    @TableField("risk_level")
    private String riskLevel;

    // 是否是保密企业(0是,1否)
    @TableField("is_secret")
    private String isSecret;

    // 备注
    @TableField("remark")
    private String remark;

    // 企业负责人
    @TableField("company_leader")
    private String companyLeader;

    // 检查周期
    @TableField("search_cycle")
    private String searchCycle;

    // 监管部门
    @TableField("supervision_dept")
    private String supervisionDept;

    // 部门负责人
    @TableField("dept_leader")
    private String deptLeader;

    // 监管责任人
    @TableField("supervisor")
    private String supervisor;

    @TableField("parent_id")
    private Integer parentId;

    @TableField("detail")
    private String detail;

    @TableField("park_id")
    private Integer parkId;

    @Override
    protected Serializable pkVal() {
        return this.orgId;
    }

}
